home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing.plaf.basic;
-
- import java.awt.Component;
- import java.awt.Container;
- import java.awt.Dimension;
- import java.awt.LayoutManager;
- import java.io.Serializable;
-
- class BasicSplitPaneDivider$DividerLayout implements LayoutManager, Serializable {
- // $FF: synthetic field
- BasicSplitPaneDivider this$0;
-
- public void layoutContainer(Container c) {
- if (this.this$0.leftButton != null && this.this$0.rightButton != null && c == this.this$0) {
- if (this.this$0.splitPane.isOneTouchExpandable()) {
- int blockSize = Math.min(this.this$0.getDividerSize(), 5);
- if (this.this$0.orientation == 0) {
- int y = (((Component)c).getSize().height - blockSize) / 2;
- this.this$0.leftButton.setBounds(2, y, blockSize * 2, blockSize);
- this.this$0.rightButton.setBounds(14, y, blockSize * 2, blockSize);
- } else {
- int x = (((Component)c).getSize().width - blockSize) / 2;
- this.this$0.leftButton.setBounds(x, 2, blockSize, blockSize * 2);
- this.this$0.rightButton.setBounds(x, 14, blockSize, blockSize * 2);
- }
- } else {
- this.this$0.leftButton.setBounds(-5, -5, 1, 1);
- this.this$0.rightButton.setBounds(-5, -5, 1, 1);
- }
- }
-
- }
-
- public Dimension minimumLayoutSize(Container c) {
- return new Dimension(0, 0);
- }
-
- public Dimension preferredLayoutSize(Container c) {
- return new Dimension(0, 0);
- }
-
- public void removeLayoutComponent(Component c) {
- }
-
- public void addLayoutComponent(String string, Component c) {
- }
-
- // $FF: synthetic method
- BasicSplitPaneDivider$DividerLayout(BasicSplitPaneDivider this$0) {
- this.this$0 = this$0;
- }
- }
-